﻿<?php
	require_once "common.php";
	$username=$_POST["username"];
	$password=$_POST["password"];
	if($username!=""&&$password!=""){
		$register=new register($username,$password);//实例化register类
		$result=$register->regist();
		if(result){
			echo "注册成功！</br>";
			echo "<a href=admin.html>进入管理页面点此链接</a>";
		}
		echo "注册失败！</br>";
		echo "<a href=register.html>返回注册页面</a>";
	}
	
	
	
?>